package com.tg.app.activity.device.add;
import com.tg.app.util.LogUtils;
import com.tg.appcommon.android.TGApplicationBase;
import com.umeng.analytics.MobclickAgent;

public class AddDeviceReportHelper {
    public static final String KEY_NAME = "add_device_";

    public static void onEventClickByName(String subPage, String btn){
        MobclickAgent.onEvent(TGApplicationBase.getInstance().getApplicationContext(), "TG_Event_Click_"+ KEY_NAME + subPage, btn);
        LogUtils.onEventClickByName("TG_Event_Click_"+ KEY_NAME + subPage, btn);

    }

    public static void onEventLongTimeByName(String subPage, String title, long times){
        String strTimes = String.valueOf(times);
        MobclickAgent.onEvent(TGApplicationBase.getInstance().getApplicationContext(), "TG_Event_Times_"+ KEY_NAME + subPage, title + "_" + String.valueOf(times));
    }
}
